//
// Created by lenovo on 25-5-8.多继承
//
#include "iostream"
using namespace std;
class Parent_One
{
public:
    int m_A;
    Parent_One()
    {
        m_A = 100;
    }
};
class Parent_Two
{
public:
    int m_B;
    Parent_Two()
    {
        m_B = 200;
    }
};
class Son:public Parent_One, public Parent_Two//当父类出现同名的成员，需要加作用域区分
{
public:
    int m_C;
    Son()
    {
        m_C = 300;
    }
};
void Test01()
{
    Son s;
    cout<<"sizeof(S)："<< sizeof(s)<<endl;
    cout<<"values："<<s.m_A<<" "<<s.m_B<<" "<<s.m_C<<endl;
}
int main()
{
    Test01();
    return 0;
}